<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Hoodoo::Services::Request::ListParameters</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../../../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../../css/github.css" type="text/css" media="screen" />
<script src="../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>
    <div class="banner">
        <h1>
            <span class="type">Class</span>
            Hoodoo::Services::Request::ListParameters
                <span class="parent">&lt;
                    Object
                </span>
        </h1>
        <ul class="files">
            <li><a href="../../../../files/lib/hoodoo/services/services/request_rb.html">lib/hoodoo/services/services/request.rb</a></li>
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
    <div class="description">
      
<p>Encapsulation of all parameters related only to modifying a list of
results. Other parameters may modify lists too, but they also modify other
representations (e.g. single-resource &#39;show&#39;).</p>

    </div>








    <!-- Method ref -->
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
        <dt>N</dt>
        <dd>
          <ul>
              <li>
                <a href="#method-c-new">new</a>
              </li>
          </ul>
        </dd>
    </dl>








      <!-- Section attributes -->
      <div class="sectiontitle">Attributes</div>
      <table border='0' cellpadding='5'>
          <tr valign='top' id='attribute-i-filter_data'>
            <td class='attr-rw'>
              [RW]
            </td>
            <td class='attr-name'>filter_data</td>
            <td class='attr-desc'><p>List filter key/value pairs as a hash, all keys/values strings; {} if
there&#39;s no filter data in the request URI query string.</p></td>
          </tr>
          <tr valign='top' id='attribute-i-limit'>
            <td class='attr-rw'>
              [RW]
            </td>
            <td class='attr-name'>limit</td>
            <td class='attr-desc'><p>List page size, for index views; an integer; always defined.</p></td>
          </tr>
          <tr valign='top' id='attribute-i-offset'>
            <td class='attr-rw'>
              [RW]
            </td>
            <td class='attr-name'>offset</td>
            <td class='attr-desc'><p>List offset, for index views; an integer; always defined.</p></td>
          </tr>
          <tr valign='top' id='attribute-i-search_data'>
            <td class='attr-rw'>
              [RW]
            </td>
            <td class='attr-name'>search_data</td>
            <td class='attr-desc'><p>List search key/value pairs as a hash, all keys/values strings; {} if
there&#39;s no search data in the request URI query string.</p></td>
          </tr>
          <tr valign='top' id='attribute-i-sort_data'>
            <td class='attr-rw'>
              [RW]
            </td>
            <td class='attr-name'>sort_data</td>
            <td class='attr-desc'><p>A Hash of String keys and values, where each key is a field for sorting and
each value is the direction to sort that field.</p></td>
          </tr>
      </table>


    <!-- Methods -->
      <div class="sectiontitle">Class Public methods</div>
        <div class="method">
          <div class="title method-title" id="method-c-new">
              <b>new</b>()
            <a href="../../../../classes/Hoodoo/Services/Request/ListParameters.html#method-c-new" name="method-c-new" class="permalink">Link</a>
          </div>

            <div class="description">
              <p>Set up defaults in this instance.</p>
            </div>



            <div class="sourcecode">
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
              </p>
              <div id="method-c-new_source" class="dyn-source">
                <pre><span class="ruby-comment"># File lib/hoodoo/services/services/request.rb, line 59</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">initialize</span>
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">offset</span>      = <span class="ruby-number">0</span>
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">limit</span>       = <span class="ruby-number">50</span>
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">sort_data</span>   = { <span class="ruby-string">&#39;created_at&#39;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&#39;desc&#39;</span> }
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">search_data</span> = {}
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">filter_data</span> = {}
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
          </div>
</div>

    </div>
  </body>
</html>
